package malloc;

public class basic1929 {


    public int[] getConcatenation(int[] nums) {
        int[] newarr = new int[nums.length * 2];
        for (int i = 0; i < nums.length; i++) {
            newarr[i]=nums[i];
            newarr[i+ nums.length]=nums[i];
        }
        return newarr;
    }

    public static void main(String[] args) {
        basic1929 basic1929 = new basic1929();
        int[] concatenation = basic1929.getConcatenation(new int[]{2, 5, 4, 3});
        for (int a:
             concatenation) {
            System.out.println(a);

        }


    }

}
